{extend name="./oscshop/admin/view/public/base.html" /}
{block name="content"}
<div class="page-header">
    <h1>
        {$breadcrumb1}
        <small>
            <i class="ace-icon fa fa-angle-double-right"></i>
            {$breadcrumb2}
        </small>
    </h1>
</div>

<form>
    <table class="table table-striped table-bordered table-hover search-form">
        <thead>
        <th>
            <input name="dt" type="date" placeholder="日期" value="{:input('param.date')}"/>

            <a class="btn btn-primary" href="javascript:;" id="search" url="{:url('fin/member')}">查询</a>
        </th>

        </thead>
        <thead>

        <th>总VIP数（{$num0}），总游客数（{$num1}），总会员数（{$num2}）</th>

        </thead>

    </table>

    <div class="row">
        <div class="col-xs-12">
            <div class="table-responsive">
                <table class="table table-striped table-bordered table-hover">
                    <thead>
                    <tr>
                        <th>时间</th>
                        <th>注册会员数</th>
                    </tr>
                    </thead>
                    <tbody>
                    {volist name="list" id="v" empty="$empty"}
                    <tr>
                        <td>{$v.reg}</td>

                        <td>{$v.co}</td>
                    </tr>
                    {/volist}


                    </tbody>

                </table>
            </div>
        </div>
    </div>
</form>
{/block}
{block name="javascript"}
<script>
    $(function () {
        $("#search").click(function () {
            var url = $(this).attr('url');
            var query = $('.search-form').find('input,select').serialize();
            query = query.replace(/(&|^)(\w*?\d*?\-*?_*?)*?=?((?=&)|(?=$))/g, '');
            query = query.replace(/^&/g, '');
            if (url.indexOf('?') > 0) {
                url += '&' + query;
            } else {
                url += '?' + query;
            }
            window.location.href = url;
        });

        $("#current").click(function () {
            var url = $(this).attr('url');
            var query = $('.search-form').find('input,select').serialize();
            query = query.replace(/(&|^)(\w*?\d*?\-*?_*?)*?=?((?=&)|(?=$))/g, '');
            query = query.replace(/^&/g, '');
            if (url.indexOf('?') > 0) {
                url += '&' + query;
            } else {
                url += '?' + query;
            }
            window.location.href = url;
        });
    });
</script>
{/block}